package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class ParameterType {

    private int beginIndex;
    private int endIndex;
    private DataType dataType;
    private LocatorIndication locatorIndication;

    public ParameterType(DataType dataType, LocatorIndication locatorIndication) {
        this.beginIndex = dataType.getBeginIndex();
        this.endIndex = locatorIndication.getEndIndex();
        this.dataType = dataType;
        this.locatorIndication = locatorIndication;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public DataType getDataType() {
        return dataType;
    }

    public LocatorIndication getLocatorIndication() {
        return locatorIndication;
    }

}
